package org.example.xiaomi.util;

import redis.clients.jedis.Jedis;

public class RedisUtil {
    private static final String host = "127.0.0.1";
    private static final int port = 6379;
    private static Jedis jedis = null;
    public static Jedis getJedis() {
        if (jedis == null) {
            jedis = new Jedis(host, port);
        }
        return jedis;
    }
}
